package com.atguigu.spzx.cart.client.fallback;

import com.atguigu.spzx.cart.client.CartClient;
import com.atguigu.spzx.model.vo.common.Result;
import com.atguigu.spzx.model.vo.common.ResultCodeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class CartClientFallback implements CartClient {

    @Override
    public Result findCheckedCartItems() {
        log.error("远程查询用户选中的购物项列表失败");
        return Result.setResult(ResultCodeEnum.ERROR , null);
    }

    @Override
    public Result deleteCartItems() {
        log.error("远程删除用户选中的购物项列表失败");
        return Result.setResult(ResultCodeEnum.ERROR , null);
    }
}
